<template>
  <div v-if="dynamicTags.length > 0" class="more-search-content">
    <div class="more-search-key">搜索条件</div>
    <div class="more-search-val">
      <el-tag
        v-for="tag in dynamicTags"
        :key="tag.name"
        closable
        :disable-transitions="false"
      >
        {{ tag.valStr }}
      </el-tag>
    </div>
  </div>
</template>

<script>
export default {
  name: 'SearchTap',
  props: {
    dynamicTags: {
      type: Array,
      default: function() {
        return []
      }
    }
  }
}
</script>

<style scoped>
  .more-search-content{
    display: flex;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 29px;
  }
  .more-search-key{
    width: 70px;
    color: #909399;
  }
  .more-search-val{
    flex: 1;
  }
  .el-tag + .el-tag {
    margin-left: 10px;
  }
</style>
